// AWTDialog.h: interface for the AWTDialog class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTDIALOG_H__F1FD2798_7949_11D2_A422_006097A44215__INCLUDED_)
#define AFX_AWTDIALOG_H__F1FD2798_7949_11D2_A422_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTWindow.h"

class AFX_EXT_CLASS AWTDialog : public AWTWindow  
{
DECLARE_DYNAMIC(AWTDialog)
public:
	AWTDialog(AWTFrame* parent);
	AWTDialog(AWTFrame* parent, BOOL modal);
	AWTDialog(AWTFrame* parent, LPTSTR title);
	AWTDialog(AWTFrame* parent, CString& title);
	AWTDialog(AWTFrame* parent, CString& title, BOOL modal);
//	AWTDialog(CWnd* parent, CString& title, BOOL modal);
	virtual ~AWTDialog();

	BOOL isModal() 
		{return m_modal;}
	void setModal(BOOL b) 
		{m_modal = b;}
	CString& getTitle() 
		{return m_title;}
	void setTitle(CString& title);

	virtual CWnd* createComponent();
	virtual void reshape(int x, int y, int w, int h);
	virtual void pack();
	virtual void show();
	virtual void dispose();

private:
	void construct(AWTFrame* parent, CString& title, BOOL modal)
	{
		setBackground(new AWTColor(GetSysColor(COLOR_3DFACE)));
		m_title = title;
		m_modal = modal;
	}

protected:
	BOOL m_resizable;
	BOOL m_modal;
	CString m_title;

};

#endif // !defined(AFX_AWTDIALOG_H__F1FD2798_7949_11D2_A422_006097A44215__INCLUDED_)
